<extend name="Layout:layout_edit" />
<block name="body_content_block">
<taglib name="Common\TagLib\Sohtml"/>
<div class="panel">
    <div>
        <form id="frmMain" action="{:AddonU('Index/centserver_save')}" method="post">
            <fieldset style="margin: 0px;">
                <legend>中心服务器设置</legend>
                <ul>
                    <li>
                        <label>服务器IP：</label>
                        <input type="text" name="host" value="{$data.host}" required="required" />
                    </li>
                    <li>
                        <label>用户名：</label>
                        <input type="text" name="loginID" value="{$data.loginID}" required="required" />
                    </li>
                    <li>
                        <label>密 码：</label>
                        <input type="text" name="password" value="{$data.password}" required="required" />
                    </li>
                    <li>
                        <label>状 态：</label>
                        <sohtml:radio name="state" items="0=禁用;1=启用" value="{$data.state}" required="required" />
                    </li>
                    <li>
                        <label>&nbsp;</label>
                        <input type="submit" value="保存"/><input type="button" value="关闭" class="btn-close-dialog"/></li>
                </ul>
            </fieldset>
            <input type='hidden' name='id' value='{$data.id}'/>
            <input type='hidden' value='dialog' name='show'/>
        </form>
    </div>
</div>
</block>